<template>
  <div>
    <div style="margin-bottom: 3.4rem">
      <router-view></router-view>
    </div>
    <tab-bar :tab-items="tabs" @clickPosition="clickTab" v-show="false"/>

  </div>
</template>

<script>

  import TabBar from "./common/TabBar";

  export default {
    name: "Index",
    components: {
      TabBar
    },
    data() {
      return {
        tabs: [
          {
            icon: require('@res/img/tab/square.png'),
            selectIcon: require('@res/img/tab/square_s.png'),
            text: '场景',
            path: '/index/scene'
          }, {
            icon: require('@res/img/tab/cat.png'),
            selectIcon: require('@res/img/tab/cat_s.png'),
            text: '定制',
            path: '/index/custom'
          }
        ]
      }
    },
    methods: {
      clickTab(index) {
        console.log('click tab:', index);
      }
    },
  }
</script>

<style scoped>

</style>
